Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 4a90c7dcd5e7513a2cca11dae8fa17c66237ba9b


Parents : d368e40
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-10-15T20:11:47+02:00

Updated path in service loader

Changes

1 files changed, 2 insertions(+), 2 deletions(-)


Diff

diff --git a/sbapp/patches/PythonService.java b/sbapp/patches/PythonService.java
index d839f0f3..d59fe1c0 100644
--- a/sbapp/patches/PythonService.java
+++ b/sbapp/patches/PythonService.java
@@ -147,8 +147,8 @@ public class PythonService extends Service implements Runnable {
builder.setContentIntent(pIntent);
// builder.setOngoing(true);
- // TODO: Generalise this
- Bitmap icon_bitmap = BitmapFactory.decodeFile("/data/user/0/io.unsigned.sideband/files/app/assets/notification_icon.png");
+ String files_path = context.getFilesDir().getPath();
+ Bitmap icon_bitmap = BitmapFactory.decodeFile(files_path+"/app/assets/notification_icon.png");
Icon service_icon = Icon.createWithBitmap(icon_bitmap);
// builder.setSmallIcon(context.getApplicationInfo().icon);
builder.setSmallIcon(service_icon);


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────